<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			.test{
				position: fixed;
				left: 50px;
				top: 50px;
				width: 100px;
				height: 100px;
				background-color: pink;
			}
		</style>
	</head>
	<body style="height: 2000px;">
		<div class="test"></div>
	</body>
</html>